package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.TSampTevDataInfoEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TSampNoiseBaseInfoDao;
import io.renren.modules.substation.entity.TSampNoiseBaseInfoEntity;
import io.renren.modules.substation.service.TSampNoiseBaseInfoService;


@Service("tSampNoiseBaseInfoService")
public class TSampNoiseBaseInfoServiceImpl extends ServiceImpl<TSampNoiseBaseInfoDao, TSampNoiseBaseInfoEntity> implements TSampNoiseBaseInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSampNoiseBaseInfoEntity> page = this.page(
                new Query<TSampNoiseBaseInfoEntity>().getPage(params),
                new QueryWrapper<TSampNoiseBaseInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateNoiseValueByDevData(TSampNoiseBaseInfoEntity tSampNoiseBaseInfoEntity)
    {
        return baseMapper.updateNoiseValueByDevData(tSampNoiseBaseInfoEntity);
    }

}